<template>
  <div class="recommend">
    <div class="recommend-item" :key="item.title" v-for="item in recommends">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <span>{{ item.title }}</span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "RecommendView",
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style scoped lang="less">
.recommend {
  display: flex;
  width: 100%;
  .recommend-item {
    flex: 1;
    a {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 120px;
    }
    img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
    }
  }
}
</style>
